package com.hdu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hdu.enums.CareerLabel;
import com.hdu.enums.EducationLabel;
import com.hdu.enums.SubjectLabel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 老师实体类
 * </p>
 *
 * @author xiaobai
 * @since 2024-05-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("teacher")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tID", type = IdType.INPUT)
    private String id;

    /**
     * 老师姓名
     */
    private String name;

    /**
     * 老师年龄
     */
    private Integer age;

    /**
     * 性别 1男 0女
     */
    private Boolean sex;

    /**
     * 入职时间
     */
    private LocalDate time;

    /**
     * 教授学科
     */
    private SubjectLabel subject;

    /**
     * 职称
     */
    private CareerLabel career;

    /**
     * 任职学校
     */
    private String school;

    /**
     * 学历
     */
    private EducationLabel education;


}
